package com.cc.visitor.dao;

import com.cc.visitor.entity.JsapiTicket;
import com.mybatisflex.core.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * @author chanchaw
 * @create 2025-01-18 15:42
 */
@Repository
public interface JsapiTicketMapper extends BaseMapper<JsapiTicket> {
    @Select("call usp_getActiveTicket()")// 获取当前有效的 ticket
    JsapiTicket getActiveTicket();
}
